#ifndef __TIMER_DEVICE_H
#define __TIMER_DEVICE_H

#include "tim.h"

typedef struct Timer_Data {
	TIM_HandleTypeDef *handle;
}TimerData, *PTimerData;

typedef struct Timer_Device {
	char *name;
	int (*Init)(struct Timer_Device *ptDev);
	void (*Callback)(void);
	void *privData;
}TimerDevice, *PTimerDevice;

PTimerDevice GetTimerDevice(char *name);

#endif /* __TIMER_DEVICE_H */

